﻿@{
    ViewBag.Title = "ParList";
}
@using YouWei.Infrastructure.Models;
@using YouWei.Utility;
@model  List<VehicleLicenseMode>

@if (Model.Count <= 0)
{
    <div class="no-data" id="nodata">
        <div class="img-box"></div>
        <div class="text">暂无数据</div>
    </div>
}
else
{
    <table class="table table-bordered table-hover body-table-head">
        <thead>
            <tr>
                <th>
                    行驶证ID
                </th>
                <th>
                    用户名
                </th>
                <th>
                    用户电话
                </th>
                <th>
                    号牌号码
                </th>
                <th>
                    车架号
                </th>

                <th>
                    发动机号
                </th>
                <th>
                    创建时间
                </th>
                <th class="t_c">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td class="title">@item.VehicleLicenseID</td>
                    <td>@item.UserName</td>
                    <td>@item.Mobile</td>
                    <td>@item.PlateNo</td>
                    <td>@item.VIN</td>
                    @*<td>@item.Proince @item.City @item.Location</td>*@
                    <td>@item.EngineNo</td>
                    <td>@item.CreatedDate.ToString("yyyy-MM-dd HH:mm")</td>
                    <td>
                        <button type="button" class="btn btn-info btn-xs" onclick="approval('@item.VehicleLicenseID')">审核</button>
                        <button type="button" class="btn btn-info btn-xs" onclick="detail('@item.VehicleLicenseID')">详情</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <input type="hidden" id="total" value="@ViewBag.Total" />
}





